package org.lzy.shop.viewmodel.repository.lmpl

import org.lzy.shop.network.KtorApiService
import org.lzy.shop.response.HomeClassifyResponse
import org.lzy.shop.viewmodel.repository.BaseRepository
import org.lzy.shop.viewmodel.repository.ClassifyRepository

class ClassifyRepositoryImpl : BaseRepository(), ClassifyRepository {

    override suspend fun getHomeClassify(): MutableList<HomeClassifyResponse>? {
        return safeApiCall {
            val response = KtorApiService.getHomeClassify()
            handleResponse(response)
        }
    }

}